home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / POV-Ray 3.0.2 / src / MacSource / FileQueue.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-14  |  2.4 KB  |  76 lines  |  [TEXT/CWIE]

  1. /*
  2. ==============================================================================
  3. Project:    POV-Ray
  4.  
  5. Version:    3
  6.  
  7. File Name:    FileQueue.h
  8.  
  9. Description:
  10.     Generic Macintosh File Spec queueing routine.  This is intended to
  11.     be used to collect the list of files passed in via System 7 ODOC
  12.     AppleEvents, for processing at a more convenient time.
  13.  
  14.     This is the header file, containing the public definitions for
  15.     the useful external functions.
  16.  
  17. Related Files:
  18.     FileQueue.c    - Main implementation for these routines
  19. ------------------------------------------------------------------------------
  20. Author:
  21.     Eduard [esp] Schwan
  22. ------------------------------------------------------------------------------
  23.     from Persistence of Vision(tm) Ray Tracer
  24.     Copyright 1996 Persistence of Vision Team
  25. ------------------------------------------------------------------------------
  26.     NOTICE: This source code file is provided so that users may experiment
  27.     with enhancements to POV-Ray and to port the software to platforms other 
  28.     than those supported by the POV-Ray Team.  There are strict rules under
  29.     which you are permitted to use this file.  The rules are in the file
  30.     named POVLEGAL.DOC which should be distributed with this file. If 
  31.     POVLEGAL.DOC is not available or for more info please contact the POV-Ray
  32.     Team Coordinator by leaving a message in CompuServe's Graphics Developer's
  33.     Forum.  The latest version of POV-Ray may be found there as well.
  34.  
  35.     This program is based on the popular DKB raytracer version 2.12.
  36.     DKBTrace was originally written by David K. Buck.
  37.     DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
  38. ------------------------------------------------------------------------------
  39. Change History:
  40.     920820    [esp]    Created
  41.     931001    [esp]    version 2.0 finished (Released on 10/4/93)
  42. ==============================================================================
  43. */
  44.  
  45. #if !defined(FILEQUEUE_H)
  46. #define FILEQUEUE_H
  47.  
  48.  
  49. #include "config.h"
  50.  
  51. #include <Files.h>        // FSSpec def
  52.  
  53. // This is the linked list structure to hold a list of file names.
  54. typedef struct
  55. {
  56.     FSSpec        fFSSpec;
  57. } flistrec_t, *flistptr_t, **flisthdl_t;
  58.  
  59.  
  60. // Construct queue
  61. void FileQ_c(void);
  62.  
  63. // Add an item to the queue
  64. void FileQ_Put(FSSpecPtr    pFSSpecPtr);
  65.  
  66. // Retrieve an item from the queue
  67. Boolean FileQ_Get(FSSpecPtr    pFSSpecPtr);
  68.  
  69. // Return the # of items in the queue
  70. short FileQ_NumItems(void);
  71.  
  72. // Destroy queue
  73. void FileQ_d(void);
  74.  
  75.  
  76. #endif // FILEQUEUE_H